package com.java01.string.regex;

public class Matches {

	public static void main(String[] args) {
		String target = "Did you visit www.java01.com today?";
		
		if(target.matches("java01")){
			System.out.println("O");
		}else{
			System.out.println("X");
		}
		
		if(target.matches(".*java01.*")){
			System.out.println("O");
		}else{
			System.out.println("X");
		}
	}
}
